<template>
  <view class="searchitem" :style="{'background-color':color}">
   <view class="hsearch" @click="gosearch" :style="{'border-radius':reduis+'px'}">
     <uni-icons type="search" class="hsrarchcon"
     ></uni-icons>
     <text >搜索</text>
   </view>
  </view>
</template>

<script>
  export default {
    name:"mysearch",
    props:{
      color:{
        type:String,
        default:'#c00000'
      },
      reduis:{
        type:Number,
        default:18
      }
    },
    data() {
      return {
        
      };
    },
    methods:{
      gosearch(){
        this.$emit('myclick')
      }
    }
  }
</script>

<style lang="scss">
.searchitem{
  height: 50px;
  position:sticky;
  top:0;
  z-index: 999;
  //background-color:#c00000;
  padding: 0 10px;
  .hsearch{
    height: 36px;
    background-color: #FFFFFF;
    // border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text{
      font-size: 12px;
    }
  }
}
</style>
